﻿using System;

namespace MefBasic.Data
{
    public class SelectableItem<T>:ANotifyPropertyChanged
    {
        public SelectableItem()
        {
            
        }

        public SelectableItem(T data)
        {
            Data = data;
        }
        private T _data;
        public T Data
        {
            get { return _data; }
            set
            {
                _data = value;
                OnPropertyChanged("Data");
            }
        }

        private bool _isSelected;
        public bool IsSelected
        {
            get { return _isSelected; }
            set
            {
                _isSelected = value;
                OnPropertyChanged("IsSelected");
            }
        }
    }
}
